import { IRoutes } from '@todo/core';
import { authGuard } from '../../auth/authGuard.ts';
import { DASHBOARD_ROUTES } from '../../dashboard/config/routes.ts';

export const CORE_ROUTES = {
  HOME: 'home',
  404: '404',
};

export const routes: IRoutes = [
  {
    name: CORE_ROUTES.HOME,
    path: '/',
    auth: authGuard,
    onEnter: async (_router) => {},
    forwardTo: DASHBOARD_ROUTES.DASHBOARD,
  },
  {
    name: CORE_ROUTES[404],
    path: '/404',
    auth: authGuard,
  },
];
